

import { axios, get, post } from "./request"



export const $http = {
    register: body => post("/api/register", body),

    login: body => post("/api/login", body),

    captcha_sent: (params) => get("http://47.104.209.44:3333/captcha/sent", params),   // 发送验证码

    captcha_verify: (params) => get("http://47.104.209.44:3333/captcha/verify", params),   // 校验验证码

    sendcaptcha: body => post("/api/sendcaptcha", body),

    checkcaptcha: body => post("/api/checkcaptcha", body),

    getuserinfo: body => get("/api/getuserinfo", body),

    uploadavatar: body => post("/api/uploadavatar", body),

    getuserlist: body => get("/api/getuserlist", body),

    deluserone: body => post("/api/deluserone", body),

    uploadimg: body => post("/api/uploadimg", body),

    annoadd: body => post("/api/annoadd", body),

    getannolist: body => get("/api/getannolist", body),

    getannodetail: body => post("/api/getannodetail", body),

    delannoone: body => post("/api/delannoone", body),

    annoupdate: body => post("/api/annoupdate", body),

    addxueke: body => post("/api/addxueke", body),

    getxueke: body => post("/api/getxueke", body),

    delxueke: body => post("/api/delxueke", body),

    updatexueke: body => post("/api/updatexueke", body),

    addbanji: body => post("/api/addbanji", body),

    getbanjis: body => post("/api/getbanjis", body),

    delbanji: body => post("/api/delbanji", body),

    updateuserinfo: body => post("/api/updateuserinfo", body),




}